import {
  request,
  BASEURL
} from '../../utils/request';
Page({

  data: {
    withdList:[]
  },

//提现明细数据
async withdList(){
  let {openid} = wx.getStorageSync('uid')
  let res = await request({
    url: '/api/Wxapp/withdrawalLog',
    method:"POST",
    data:{
      openid
    }
  })
  console.log(res)
  let withdList = res.data.data
  this.setData({
    withdList,
    BASEURL
  })
},

  onLoad: function (options) {
    this.withdList()
  },

  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    let {openid} = wx.getStorageSync('uid')
    return {
      title: "邀请好友",
      path:`/pages/index/index?pid=${openid}` 
    }
  }
})